fix [NEX-28]: file_type is None for result_file_type in chunker partition json#4016
Closed
yuming-long wants to merge 8 commits intomainfrom
Closed
fix [NEX-28]: file_type is None for result_file_type in chunker partition json#4016yuming-long wants to merge 8 commits intomainfrom
yuming-long wants to merge 8 commits intomainfrom
Conversation
Contributor
Author
|
this is not the root cause of the bug - will close this one for now |
Contributor
Author
|
|
In this pull request parent-child relationship for elements generated with v2 parser is based on actual element IDs instead of IDs baked somewhere in the HTML script. With some extra bug fixing it allowed for significantly simplifying json -> HTML script
### Summary
To fix error `Error in chunk: 512: {"detail":"'NoneType' object has no
attribute 'strip'"}` I found the logs under same org (could assume this
is the same job)
screenshot:

stack trace from the `utic-api` ES log doc:

### Notes
longer term we should make partitioner (vlm + utic-api) not return text
with Null
---------
Co-authored-by: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com>
Co-authored-by: yuming-long <yuming-long@users.noreply.github.com>
new `torch==2.7.1` now comes with nvidia gpu support and triton as dependencies. Those are not supported by `arm64` or actually being used by `unstructured` in `adm64` either. This is a quick patch to remove those from .txt requirements files to unblock builds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
'NoneType' object has no attribute 'partitioner_shortname'due toresult_file_type = self._disambiguate_json_file_typecould return None for file typeBug Invest Notes
to fix the error




'NoneType' object has no attribute 'partitioner_shortname'in chucker i found the ES logs under same org:stack trace from the
utic-apiES log doc:and note that the content-type got changed into
"content_type": "application/x-ole-storage",in unstructured code (doc type for partitioner ?) even though we are making an API call with the correct content type"GeneralFormParams(coordinates=False, encoding=None, content_type='application/json'so maybe
we are passing the msg file here not json?